package com.eshore.norm.pattern.decorator;

/**
 * 炒饭 ConcreteComponent（具体主体）：实现了Component角色所定义的接口
 *
 * @author: v-chenjl62
 * @date: 2024/2/5 14:46
 */
public class FriedRice extends FastFood {

    public FriedRice(){
        super(10,"炒饭");

    }

    @Override
    public float cost() {
        return getPrice();
    }
}
